.danmu-unit {
  position: absolute;
  left: 100%;
  font-size: 2rem;
  color: #fff;
  animation: moveFromRightToLeft 10s linear;
  padding: 15px 10px;

  &.self {
    border: 1px solid #fff;
  }
}


@keyframes moveFromRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-102vw);
  }
}